import { Module } from '@nestjs/common'
import { SubjectsService } from './subjects.service'
import { SubjectsController } from './subjects.controller'
import { MongooseModule } from '@nestjs/mongoose'
import { Subject, SubjectSchema } from 'src/schema/subject.schema'
import { TestPaper, TestPaperSchema } from 'src/schema/testpaper.schema'
import { Shijuan, ShijuanSchema } from 'src/schema/shijuan.schema'

@Module({
  imports: [
    MongooseModule.forFeature([
      { name: Subject.name, schema: SubjectSchema },
      { name: TestPaper.name, schema: TestPaperSchema },
      { name: Shijuan.name, schema: ShijuanSchema }
    ])
  ],
  controllers: [SubjectsController],
  providers: [SubjectsService]
})
export class SubjectsModule {}
